package com.xckj.cycling.repository

import com.google.android.gms.auth.api.signin.GoogleSignInAccount
import com.junca.android.service.Request
import com.xckj.cycling.bean.UserInfoResponseBean
import com.xckj.cycling.framework.model.Response

class LoginRepository {


    suspend fun loginByGoogle(apiAccount: GoogleSignInAccount): Response<UserInfoResponseBean> {
        return Request.postSuspend("qixing/user/third", HashMap<String, Any>().apply {
            put("idToken", apiAccount.idToken ?: "")
        })
    }
}